package com.spark.demoim.global

import android.content.Context
import android.support.multidex.MultiDex
import android.support.multidex.MultiDexApplication

/**
 * Created by lenovo on 2017/8/15.
 */
class App : MultiDexApplication() {
    companion object {
        var appContext: Context? = null
    }

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        MultiDex.install(this)
    }

    override fun onCreate() {
        super.onCreate()

        appContext = this

        IMHelper.OptionBuilder()
                .setAcceptInvitationAlways(true)
                .setAllowChatroomOwnerLeave(true)
                .setAutoLogin(true)
                .build()

    }
}